import request from '@/utils/request'

// 查询视频号发布记录列表
export function listPublishRecord(query) {
  return request({
    url: '/media/publishRecord/list',
    method: 'get',
    params: query
  })
}

// 查询视频号发布记录详细
export function getPublishRecord(id) {
  return request({
    url: '/media/publishRecord/' + id,
    method: 'get'
  })
}

// 新增视频号发布记录
export function addPublishRecord(data) {
  return request({
    url: '/media/publishRecord',
    method: 'post',
    data: data
  })
}

// 修改视频号发布记录
export function updatePublishRecord(data) {
  return request({
    url: '/media/publishRecord',
    method: 'put',
    data: data
  })
}

// 删除视频号发布记录
export function delPublishRecord(id) {
  return request({
    url: '/media/publishRecord/' + id,
    method: 'delete'
  })
}
